﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace IDotNet.MapLibs.Web
{
    [Serializable]
    public abstract class GeocoderResultModel
    {
        /// <summary>
        /// 等于0说明没问题
        /// </summary>
        [XmlIgnore]
        public virtual int ErrorCode { get; protected set; }

        [XmlIgnore]
        public virtual string Msg { get; protected set; }

        public abstract PointModel AddressLocaltion { get; }

        /// <summary>
        /// 判断执行是否成功
        /// </summary>
        /// <returns></returns>
        public virtual bool IsSuceess()
        {
            return ErrorCode == 0;
        }
    }
}